#
# Make file to build the base components for the DBConnect API
# Copyright (c) Johnathan Ingram 2002
#
#####################################################################

SHELL = /bin/sh

top_srcdir = @top_srcdir@
CC = @CC@
CXX = @CXX@
CPPFLAGS = -fPIC @CPPFLAGS@
CFLAGS = $(CPPFLAGS) @CFLAGS@ @OS_DEF@

SOURCES = baseException.cpp simpleThreads.cpp dlLoader.cpp configFile.cpp \
 jDate.cpp hexDigest.cpp dbconnectExceptions.cpp baseConnection.cpp \
 baseQuery.cpp baseValue.cpp baseFieldDescription.cpp
OBJS = $(SOURCES:.cpp=.o)

all: $(OBJS)
	$(AR) -r libbase.a $(OBJS)


clean:
	rm -f *.o
	rm -f *.a


%.o: %.cpp %.h
	$(CXX) -c $< $(CFLAGS) -o $@
